<?php

namespace App\Observers;

use App\Handlers\KeysHandler;
use App\Models\PaymentThirdPay;
use Illuminate\Support\Facades\Cache;

class PaymentThirdPayObserver
{
    public function saved(PaymentThirdPay $version)
    {
        Cache::forget(KeysHandler::PAYMENT_THIRD_PAY_LIST);
    }

    public function deleted(PaymentThirdPay $version)
    {
        Cache::forget(KeysHandler::PAYMENT_THIRD_PAY_LIST);
    }
}
